﻿using Inovout.Business;
using Inovout.Service;
using Inovout.IdeaSoft.Model;

namespace Inovout.IdeaSoft.Business
{
    [Alias("列出项目信息")]
    public class ListProjectInfoWorkItem:BaseWorkItem
    {
        private IRepositoryService<ProjectInfo> projectInfoService;
        public ListProjectInfoWorkItem(IRepositoryService<ProjectInfo> projectInfoService)
        {
            ArgumentGuard.IsNotNull(projectInfoService, "projectInfoService");
            this.projectInfoService = projectInfoService;
        }
        protected override void Run()
        {
            base.View(projectInfoService.FindAll());
        }
    }
}
